<template>
    <a-modal title="操作记录" :width="800">
        <a-table :dataSource="data">
            <a-table-column title="ID" data-index="oid" />
            <a-table-column title="操作记录" data-index="changeMessage" />
            <a-table-column title="操作时间" data-index="createTime" />
        </a-table>
    </a-modal>
</template>

<script setup lang="ts">
import { orderLogApi } from './api';

const props = withDefaults(defineProps<{
    orderId: string
}>(), {
})
let data = $ref([])
watchEffect(() => {
    if (props.orderId) {
        orderLogApi({
            orderNo: props.orderId, page: 1,
            limit: 999
        }).then(res => {
            data = res.list
        })
    }
})


</script>

<style lang="less"></style>